#define _CRT_SECURE_NO_WARNINGS 1
#include <string>
using namespace std;
class Solution {
public:
    bool judge(string str)
    {
        int left = 0, right = str.size() - 1;
        while (left < right)
        {
            if (str[left] != str[right])
            {
                return false;
            }
            ++left;
            --right;
        }
        return true;
    }
};